package technicalservices.database;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class MsSQL extends Database {

	@Override
	public String getClassName() {
		return "com.microsoft.sqlserver.jdbc.SQLServerDriver";
	}

	@Override
	public Connection getConnection(String host, String user, String password, String database, int port)
			throws SQLException {
		return DriverManager.getConnection("jdbc:sqlserver://" + host + ":"
				+ port + ";"
				+ "user=" + user + ";"
				+ "password=" + password);
	}
}
